package com.heima.wemedia.client;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.NewsAuthDto;
import com.heima.wemedia.service.WmNewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author 黄晏凯
 */
@RestController
@RequestMapping("/api/v1/news")
public class WmNewsClient {

    @Autowired
    private WmNewsService wmNewsService;

    /**
     * 自媒体文章人工审核
     *
     * @param dto dto
     * @return {@link ResponseResult}
     */
    @PostMapping("/list_vo")
    public ResponseResult listVo(@RequestBody NewsAuthDto dto) {
        return wmNewsService.listVo(dto);
    }

}
